package com.ssm.gbq.service;

import com.ssm.gbq.model.Flowers;
import gbq.ssm.utils.BusinessException;

import java.util.List;

public interface FlowersService {
    /**
     *查询所有
     */
    List<Flowers> showFlowersTable();

   /**
     * 分页查询所有
     */
    List<Flowers> showFlowersByPage(Flowers flowers, int currentPage, int pageSize)throws Exception;

    /**
     * 通过id查询
     */
    Flowers getFlowersById(Integer id)throws BusinessException;

    /**
     * 修改
     */
    int updateFlower(Flowers flowers)throws Exception;

    /**
     * 添加
     */
    int addFlower(Flowers flowers)throws Exception;

    /**
     * 根据id删除
     */
    int delFlower(Integer id)throws Exception;

    /**
     * 查询数据条数
     */
    int getFlowersCount(Flowers flowers);

    /**
     * 批量删除
     */
    int deleteFlowers(List<Integer> ids);

}
